package cn.iocoder.yudao.module.vos.controller.admin.tenantrequestlog.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ExcelIgnoreUnannotated
public class TenantRequestMonthlyBillRow {

    @Schema(description = "年月，格式 yyyy-MM", example = "2025-10")
    @ExcelProperty("年月")
    private String yearMonth;

    // 这里用字典转换显示中文名；值传 code，由 DictConvert 渲染中文
    @Schema(description = "请求类型(中文)")
    @ExcelProperty(value = "请求类型(中文)", converter = DictConvert.class)
    @DictFormat("request_type")
    private String requestTypeLabel; // 传 code，导出呈现中文

    @Schema(description = "请求类型(代码)", example = "risk_control_search_1")
    @ExcelProperty("请求类型(代码)")
    private String requestType;

    @Schema(description = "密钥ID", example = "2")
    @ExcelProperty("密钥ID")
    private Long secretId;

    @Schema(description = "请求次数", example = "200")
    @ExcelProperty("请求次数")
    private Long times;

    @Schema(description = "单价(元)", example = "0.48")
    @ExcelProperty("单价(元)")
    private BigDecimal unitPrice;

    @Schema(description = "金额(元)", example = "96.00")
    @ExcelProperty("金额(元)")
    private BigDecimal totalAmount;
}
